function t396_init(t){var e,i,n,o,a=document.getElementById("rec"+t),r=a?a.querySelector(".t396"):null,d=a?a.querySelector(".t396__artboard"):null;d&&(t396_initTNobj(t,d),n=t396_detectResolution(t),e=document.getElementById("allrecords"),window.tn_window_width=document.documentElement.clientWidth,o="ab"+t,window.tn[o].scaleFactor=parseFloat((window.tn_window_width/n).toFixed(3)),window.tn_scale_factor=parseFloat((window.tn_window_width/n).toFixed(3)),t396_switchResolution(t,n),t396_updateTNobj(t),t396_artboard_build("",t),i="ontouchend"in document,window.addEventListener("resize",function(){tn_console(">>>> t396: Window on Resize event >>>>"),d.classList.add("t396_resizechange"),t396_waitForFinalEvent(function(){window.t396__isMobile||i?document.documentElement.clientWidth!==window.tn_window_width&&a&&t396_isBlockVisible(a)&&(t396_doResize(t),d.classList.remove("t396_resizechange")):a&&t396_isBlockVisible(a)&&(t396_doResize(t),d.classList.remove("t396_resizechange"))},500,"resizeruniqueid"+t)}),window.addEventListener("orientationchange",function(){tn_console(">>>> t396: Orient change event >>>>"),t396_waitForFinalEvent(function(){a&&t396_isBlockVisible(a)&&t396_doResize(t)},600,"orientationuniqueid"+t)}),window.addEventListener("load",function(){t396_allelems__renderView(d);var t=d?window.getComputedStyle(d).getPropertyValue("overflow"):"";"function"==typeof t_lazyload_update&&"auto"===t&&d&&d.addEventListener("scroll",t_throttle(function(){var t=e?e.getAttribute("data-tilda-lazy"):null;"y"!==window.lazy&&"yes"!==t||t_onFuncLoad("t_lazyload_update",function(){t_lazyload_update()})},500)),""!==window.location.hash&&"visible"===t&&(d&&(d.style.overflow="hidden"),setTimeout(function(){d&&(d.style.overflow="visible")},1))}),document.querySelector(".t830")&&t_onReady(function(){["t830__allrecords_padd","t830__allrecords_padd-small"].some(function(t){return e.classList.contains(t)})?t396_doResize(t):e.addEventListener("allRecPaddingInit",function(){t396_doResize(t)})}),a&&r&&d&&"yes"===a.getAttribute("data-connect-with-tab")&&r.addEventListener("displayChanged",function(){t396_allelems__renderView(d),t396_doResize(t)}),setTimeout(function(){a&&a.closest("#allrecordstable")&&r&&d&&r.addEventListener("displayChanged",function(){t396_allelems__renderView(d),t396_doResize(t)})},1e3),o=!!document.querySelector(".t635__textholder"),a&&o&&r&&d&&r.addEventListener("animationInited",function(){t396_allelems__renderView(d),t396_doResize(t)}),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&r&&r.classList.add("t396_safari"),n="window"===t396_ab__getFieldValue(d,"upscale"),o=e?"edit"===e.getAttribute("data-tilda-mode"):null,n&&!o&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(t)}),o||"y"!==t396_ab__getFieldValue(d,"fixed-need-js")||t_onFuncLoad("t396__processFixedArtBoard",function(){t396__processFixedArtBoard(d)}),o&&r&&d&&(o=d.getAttribute("data-artboard-ovrflw"),r.style.position="relative",r.style.zIndex="auto"===o||"visible"===o?"2":"1"))}function t396_isOnlyScalableBrowser(){var t=-1!==navigator.userAgent.search("Firefox"),e=!!window.opr&&!!window.opr.addons||!!window.opera||-1!==navigator.userAgent.indexOf(" OPR/");return t||e}function t396_doResize(t){var e=t396_isOnlyScalableBrowser(),i=document.getElementById("rec"+t),n=document.getElementById("allrecords"),o=t396_detectResolution(t);t396_removeElementFromDOM(i?i.querySelector(".t396__scale-style"):null),e?(e=i?i.querySelectorAll(".tn-atom"):[],Array.prototype.forEach.call(e,function(t){var e=t.closest(".tn-atom__scale-wrapper"),i=e?e.parentNode:null;i&&i.removeChild(e),i&&i.appendChild(t)})):(r=i?i.querySelectorAll(".t396__elem"):[],Array.prototype.forEach.call(r,function(t){t.style.zoom="";t=t.querySelector(".tn-atom");t&&(t.style.transformOrigin="",t.style.fontSize="",t.style.webkitTextSizeAdjust="")}));var a=i?i.querySelector(".t396__artboard"):null,r="ab"+t,i=a?a.clientWidth:0;window.tn_window_width=document.documentElement.clientWidth,window.tn[r].scaleFactor=parseFloat((window.tn_window_width/o).toFixed(3)),window.tn_scale_factor=parseFloat((window.tn_window_width/o).toFixed(3)),window.tn_scale_offset=(i*window.tn_scale_factor-i)/2,t396_switchResolution(t,o),t396_updateTNobj(t),t396_ab__renderView(a);n=n?n.getAttribute("data-tilda-mode"):"";"window"===t396_ab__getFieldValue(a,"upscale")&&"edit"!==n&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(t)}),"edit"!==n&&"y"===t396_ab__getFieldValue(a,"fixed-need-js")&&t_onFuncLoad("t396__processFixedArtBoard",function(){t396__processFixedArtBoard(a)}),"function"!=typeof window.t396__updateTopShift||"y"!==t396_ab__getFieldValue(a,"shift-processed")&&"y"!==t396_ab__getFieldValue(a,"fixed-shift")||t396__updateTopShift(t,!0),t396_allelems__renderView(a),a&&[a,a.querySelector(".t396__carrier"),a.querySelector(".t396__filter")].forEach(function(t){t&&(t.style.height="")})}function t396_detectResolution(t){if(t){var e,t="ab"+t,i=window.innerWidth;return(window.t396__isMobile||"ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit"))&&(i=document.documentElement.clientWidth),window.tn[t].screens.forEach(function(t){t<=i&&(e=t)}),void 0===e&&(e=window.tn[t].screens[0]),e}}function t396_initTNobj(t,e){e&&(tn_console("func: initTNobj"),void 0===window.tn&&(window.tn={},window.tn.ab_fields=["height","width","bgcolor","bgimg","bgattachment","bgposition","filteropacity","filtercolor","filteropacity2","filtercolor2","height_vh","valign"]),t396_setScreensTNobj(t,e))}function t396_setScreensTNobj(t,e){var i="ab"+t;window.tn[i]={},window.tn[i].screens=[];e=e.getAttribute("data-artboard-screens");e?(e=e.split(",")).forEach(function(t){t=parseInt(t,10),window.tn[i].screens.push(t)}):window.tn[i].screens=[320,480,640,960,1200]}function t396_updateTNobj(t){tn_console("func: updateTNobj");var e="ab"+t,i=document.getElementById("allrecords"),n=i&&window.getComputedStyle(i).paddingLeft||"0",n=parseInt(n,10),t=i&&window.getComputedStyle(i).paddingRight||"0",t=parseInt(t,10);window.zero_window_width_hook&&"allrecords"===window.zero_window_width_hook&&i?window.tn.window_width=i.clientWidth-(n+t):window.tn.window_width=document.documentElement.clientWidth,window.tn.window_height=window.t396__isMobile?document.documentElement.clientHeight:window.innerHeight;for(var o=window.tn[e].screens.slice().reverse(),a=0;a>16,(65280&t)>>8,255&t]}function t396_elem__getWidth(t,e){var i="ab"+(t=t396_getEl(t)).closest(".t396__artboard").getAttribute("data-artboard-recid");return e=e||t396_elem__getFieldValue(t,"width"),e=parseFloat(e),"%"===t396_elem__getFieldValue(t,"widthunits")&&(e="window"===t396_elem__getFieldValue(t,"container")?window.tn.window_width*e/100:window.tn[i].grid_width*e/100),e}function t396_elem__getHeight(t,e){t=t396_getEl(t),e=e||t396_elem__getFieldValue(t,"height"),e=parseFloat(e);var i,n,o=t.getAttribute("data-elem-type");return"shape"===o||"video"===o||"html"===o||"gallery"===o?"%"===t396_elem__getFieldValue(t,"heightunits")&&(i=(n=t.parentNode)?n.getAttribute("data-artboard-proxy-min-height"):"0",n=n?n.getAttribute("data-artboard-proxy-max-height"):"0",i=parseFloat(i),n=parseFloat(n),e="window"===t396_elem__getFieldValue(t,"container")?n*(e/100):i*(e/100)):"button"!==o&&(e=t.clientHeight),e}function t396_roundFloat(t){return t=Math.round(100*t)/100}function tn_console(t){1==+window.tn_comments&&console.log(t)}function t396_hex2rgba(t,e){if(!t)return!1;var i=t.replace(/#/,"");3===i.length&&(t="#"+i[0]+i[0]+i[1]+i[1]+i[2]+i[2]);t=parseInt(t.substring(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t,parseFloat(e)]}function t396_removeElementFromDOM(t){(t=t396_getEl(t))&&t.parentNode&&t.parentNode.removeChild(t)}function t396_getEl(t){return window.jQuery&&t instanceof jQuery?t.length?t.get(0):null:t}function t396_isBlockVisible(t){var e=window.innerWidth,i=t.getAttribute("data-screen-min"),t=t.getAttribute("data-screen-max");return!(i&&eparseInt(t,10))}